import request from '@/router/axios';

export const getSummary = (startTime, endTime) => {
  return request({
    url: '/api/celery-other/statistics/summary',
    method: 'get',
    params: {
      startTime,
      endTime
    }
  })
}

export const getTotal = () => {
  return request({
    url: '/api/celery-other/statistics/total',
    method: 'get'
  })
}

export const getHistoryRankingGoods = () => {
  return request({
    url: '/api/celery-other/statistics/history-ranking-goods',
    method: 'get'
  })
}

export const getHistoryRankingUser = () => {
  return request({
    url: '/api/celery-other/statistics/history-ranking-user',
    method: 'get'
  })
}

export const getDateRankingGoods = (startTime, endTime) => {
  return request({
    url: '/api/celery-other/statistics/date-ranking-goods',
    method: 'get',
    params: {
      startTime,
      endTime
    }
  })
}

export const getChartsSummary = (starDate, endDate) => {
  return request({
    url: '/api/celery-other/statistics/charts-summary',
    method: 'get',
    params: {
      starDate,
      endDate
    }
  })
}



